// getLocalValue('utils').printLog('设置地图初始化全局变量mapStatus')
let initialData = {
    clickPointChange: false,
    layerIdChange: false,
    areaChange: false,
    classificationIdChange: false,
    isAroundChange: false,
    globalSearchTag: false,
    // isAroundStatus: false, //存储总线当前的is_around状态
    area: {
      area_code: '320000',
      area_name: '江苏省'
    },
    lastArea: {
      area_code: '320000',
      area_name: '江苏省'
    },
    classification_id: '6',
    click_point: {
      lng: null,
      lat: null,
      id: '',
      area_code: '',
      layer_id: '',
      classification_id: '',
      km: '',
      icon_url: ''
    },
    global_search_wid: '',
    is_around: false,
    level1: [8.5, 10],
    level2: [10.1, 13],
    level3: [13.1, 19],
    currentZoom: 8.5,
    currentCenterLng: 118.6,
    currentCenterLat: 33.2,
    initialZoom: 8.5,
    initialCenterLng: 118.6,
    initialCenterLat: 33.2,
    minZoom: 8.5,
    maxZoom: 19,
    layer_id: '6|4,6|5',
    show_legend: false,
    dev: {
      iframeUrl: 'http://192.168.8.182:8080/'
    },
    prod: {
      iframeUrl: 'http://sjdpdl.handsmap.cn:800/detail_sxysafety_test/'
  
    },
    // lastClassficationId: '',
    // lastLayerId: '',
    aroundIframeOpen: false,
    initialArea: {
      area_code: '320000',
      area_name: '江苏省'
    },
    areaData: [],//{areaCode:xxx,areaName:xxx}
    around_click_point,//只保存周边的点,
    map_level: 1,
    layers: { //specialId为单独的主题，associatedId为和默认的(资源统计图和全部点位图)关联的主题，优先匹配specialId，剩下的匹配associatedId和默认的
      resourceCount: { //资源统计图
        zoom: [8.5, 10],
        show: false,
        change: false,
        queryParams: {
          '*api_id': 'overviewMap-map-city-01',
          '*classification_id': '6',
          'classification_id': '6',
        }
      },
      allPoint: { //全部点位图，包括周边(13.1-19)
        zoom: [10.1, 19],
        show: false,
        change: false,
        queryParams: {
          area_code: '',
          classification_id: '',
          // lng: '',
          // lat: '',
          layer_id: '',
          // km: ''
        }
      },
      heat: { //点位热力图(景区客流)
        zoom: [8.5, 10],
        show: false,
        change: false,
        associatedId: ['6'],
        queryParams: {
          '*api_id': 'overviewMap-map-scenic-01',
          'area_code': '320000'
        }
      },
      teamTour: { //团队旅游
        zoom: [10.1, 19],
        show: false,
        change: false,
        specialId: ['f'],
        queryParams: {
          '*api_id': 'overviewMap-map-city-01',
          '*classification_id': 'f',
          'alarm': ''
        }
      }
    },
    getMapLevel() {
      let zoomLevel;
      if (this.currentZoom <= 10) zoomLevel = 1;
      if (this.currentZoom > 10 && this.currentZoom <= 13) zoomLevel = 2;
      if (this.currentZoom > 13) zoomLevel = 3;
      // this.map_level = zoomLevel;
      return zoomLevel;
    }
  }
  return {
    data: [{
      name: "mapStatus",
      value: initialData
    }]
  }; 